<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./css/base.css" />
    <link rel="stylesheet" href="./css/denlu.css" />
  </head>
  <body>
    <header>
      <div class="head">
        <span class="left"><</span>
        <span class="right"> 会员登录 </span>
      </div>
    </header>
    <div class="box">
      <div class="title">
        <span>手机号登录</span>
      </div>
      <div class="sub-title">
        <span>未注册的手机号登录后将自动注册</span>
      </div>
      <div class="number">
        <input
          type="text"
          name=""
          id=""
          placeholder="请输入手机号码"
          pattern="[0-9]*"
        />
      </div>
      <div class="form-item">
        <input type="text" name="" id="" placeholder="请输入图形验证码" />
        <div class="item"></div>
      </div>
      <div class="name">
        <input type="text" name="" id="" placeholder="请输入短信验证码" />
      </div>
      <div class="del">
        <span>登录</span>
      </div>
    </div>
    <script src="./vue.js"></script>
    <script src="./axios.js"></script>
    <script>
      const add = new Vue({
        el: '.box',
        data: {
          number: '',
          name: '',
          username: ''
        },
        created() {
          this.getBooksList()
        },
        methods: {
          async getBooksList() {
            const arr = await axios.get(
              'http://cba.itlike.com/public/index.php?s=/api/captcha/image'
            )
            console.log(arr.data)
          }
        }
      })
    </script>
  </body>
</html>
